<template>
	<view>
		<!--  -->
		<view>
			<!-- <web-view :webview-styles="webviewStyles" :src="fileUrl" allow="" >
				
			</web-view> -->
			<!-- style="width: 100%; height: 70vh;" -->
			<iframe  class="pdfArea_view" :src="fileUrl" frameborder="0" ></iframe>
		</view>
	</view>
</template>

<script>
	
	import { kkfilePreview } from '@/common/js/urils.js'
	export default {
		data() {
			return {
				fileUrl: '',
				webviewStyles: {
					progress: {
						color: '#FF3333',
						
					},
					width: '100%',
					height: '70vh'
				}
			}
		},
		methods: {
			
		},
	
		onLoad(options) {
			this.fileUrl=kkfilePreview(options.path)
			
			console.log("URL=",this.fileUrl)
		}
	}
</script>

<style lang="scss" scoped>
	.pdfArea_view{
		height: 90vh;
		width: 100%;
	}

</style>
